package com.example.service.impl;

import com.example.service.CustomerClient;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class CustomerFallBack implements CustomerClient {


    @Override
    public Map getCustomerById(Integer custId) {
        Map<String,Object> customer=new HashMap<>();
        customer.put("custId",custId);
        System.out.println("调用本地兜底方法");
        return customer;
    }
}
